<!DOCTYPE html>
<html>
    <head>
        <title></title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <!-- basic styles -->
        <link href="../../assets/js/plugin/bootstrap/css/bootstrap.min.css" rel="stylesheet" media="screen">
        <link type="text/css" rel="stylesheet" href="../../assets/js/plugin/jquery-ui/css/jquery-ui.css" />
        <link href="../../assets/js/plugin/datepicker/css/jquery-datepicker.css" rel="stylesheet" media="screen" />
        <link href="../../assets/js/plugin/check/check.css" rel="stylesheet" media="screen" />
        <style>
            .controls span.help-inline{ font-size:12px; color:#999}
        </style>
    <body> 

        <div class="main-container">
            <h4 style="padding-left:20px; margin-top: 20px;" class='header smaller lighter blue'>协议特征库下发策略编辑</h4>
            <form class="form-horizontal">  
                <div class="control-group">
                    <label class="control-label" for="policy_desc">策略名称:</label>
                    <div class="controls">
                        <input class="policy_desc" type="text" name="1" id="policy_desc" placeholder="" required>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="Server_IP_Length">服务器 IP 地址长度</label>
                    <div class="controls">
                        <select class="Server_IP_Length">
                            <option value="4">IPv4</option>
                            <option value="16">IPv6</option>
                        </select>
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="Server_IP">服务器 IP地址</label>
                    <div class="controls">
                        <input type="text"  id="Server_IP" name="2" class="Server_IP ip" required>
                        <!--<span class="help-inline">IP 地址库对应表所在服务器 IP地址</span>-->
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="Server_Port">服务器侦听端口</label>
                    <div class="controls">
                        <input type="text"  id="Server_Port" name="3" value="22" class="Server_Port" required>
                        <!--<span class="help-inline">IP 地址库对应表所在服务器侦听端口,默认为 22</span>-->
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="UserName">sftp 服务器的用户名</label>
                    <div class="controls">
                        <input type="text"  id="UserName"  class="UserName">
                        <!--<span class="help-inline">登录 sftp 服务器的用户名,最长为 8 字节，不足系统自动以 0 补齐</span>-->
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="Password">sftp 服务器登录密码</label>
                    <div class="controls">
                        <input type="text"  id="Password"  class="Password">
                        <!--<span class="help-inline">长度必须为 8 字节</span>-->
                    </div>
                </div>
                <div class="control-group">
                    <label class="control-label" for="PS_FileName">文件名</label>
                    <div class="controls">
                        <input type="text"  id="PS_FileName" name="4"  class="PS_FileName" required>
                        <span class="help-inline">协议特征库对应表文件名</span>
                    </div>
                </div>
                <div class="control-group">
                    <div class="controls">
                        <a href="javascript:void(0)" class="btn btn-primary saveBtn" onclick="edit()">&nbsp;保&nbsp;存&nbsp;</a>
                        <a href="javascript:void(0)" class="btn btn-danger" onclick="previous()">&nbsp;取&nbsp;消&nbsp;</a>
                    </div>
                </div>
            </form>
        </div>
        <script src="../../assets/js/jquery.js"></script>
        <script src="../../assets/js/plugin/bootstrap/js/bootstrap.min.js"></script>
        <script src="../../assets/js/plugin/menu/menu.js"></script>
        <!--<script src="../../assets/js/logic/overlayer.js"></script>-->
        <script src="../../assets/js/jquery.validate.js"></script>
        <script src="../../assets/js/jquery.validate-util.js"></script>
        <script src="../../assets/js/Base64.js"></script>
        <script src="logic.js"></script>
        <script>
            $(function(){
                showData();
            })
        </script>
    </body>
</html>